demos.Patientdetail = Ext.extend(Ext.form.FormPanel, {
	title: 'CC & HPI',
    fullscreen: true,
    cardSwitchAnimation: 'slide',
    iconCls: 'iconCC_HPI',
//    layout: 'fit',
    centered: true,
    scroll: 'vertical',
//    floating: true,
//    modal: true,

    initComponent: function() {
/*        Ext.apply(this, {
                dockedItems: [
                { xtype: 'toolbar',
                dock: 'top',
                title: 'Patient',
                centered: true,
			items: [{
                        text: 'back',
                        ui: 'back',
                        handler: function() {
                            if (Ext.is.Phone) demos.Tabcontrol.tabBar.setVisible(true);
                            sink.Main.ui.setActiveItem(demos.Maincontrol, {type: 'slide', direction: 'right'});
                            sink.Main.ui.currentCard = demos.Maincontrol;
//                            demos.Tabcontrol.tabBar.setActiveItem('patients', {type: 'slide', direction: 'right'})
                        }
                    }, {
                        xtype: 'spacer'
                    }, {
                        text: 'save',
                        ui: 'confirm',		
                        handler: function() {
                            var patientbadge = demos.patientscard.tab;
                            badgeNumber = parseInt(patientbadge.badgeText);
                            nextNumber = isNaN(badgeNumber) ? '' : badgeNumber-1;
                            patientbadge.setBadge(nextNumber);
//  KR                            ROSpanel.btnCount = 0;;
//                            Ext.getCmp('const1').setBadge('');
//  KR                          if (ToolbarDemo.isPhone()) ToolbarDemo.views.viewport.tabBar.setVisible(true);
//  KR                          ToolbarDemo.views.viewport.remove(ToolbarDemo.views.viewport.getActiveItem());
//  KR                          ToolbarDemo.views.viewport.setActiveItem('patients', {type: 'slide', direction: 'right'})
                        }
                    }]
                }]
        }); */
        Ext.apply(this, {
            items: [
            {
                xtype: 'multiselectfield',
                name: 'cc',
                label: 'CC',
                labelAlign: 'left',
                labelWidth: '80',
                width: 'fit',
                options: [
                    { text: '', value: 'null' },
                    { text: 'Fall', value: 'fall' },
                    { text: 'CHF', value: 'chf' },
                    { text: 'COPD', value: 'copd' },
                    { text: 'Pneumonia', value: 'pneumo' },
                    { text: 'Diabetes Mellitus', value: 'dm' },
                    { text: 'UTI', value: 'uti' }
                ]
            },
            {
                xtype: 'textareafield',
                name: 'hpi',
                label: 'HPI',
                labelAlign: 'left',
                labelWidth: '80',
                width: 'fit',
                handler: function() {
 //                   ToolbarDemo.views.viewport.update;
                }
            },
//  KR            ROSpanel
            ]
          });
          demos.Patientdetail.superclass.initComponent.apply(this, arguments);
      }
});

Ext.reg('patientdetail', demos.Patientdetail);
